HAL RAMECC macros migration

This section provides information about the HAL RAMECC macros migration.

Note

RAMECC macros have been removed from the HAL RAMECC driver and converted into static inline APIs. Related concept: Removal of hardware-related macros in HAL2

HAL RAMECC pending flags

HAL1

HAL2

#define __HAL_RAMECC_CLEAR_FLAG

HAL_RAMECC_CLEAR_FLAG() is handled intrinsically by various HAL APIs. If needed, user can use the LL function to clear the flag manually:

__STATIC_INLINE void LL_RAMECC_ClearFlag(RAMECC_Monitor_TypeDef *p_ramecc, uint32_t flags)


HAL RAMECC disable global interrupt

HAL1

HAL2

#define __HAL_RAMECC_DISABLE_GLOBAL_IT

HAL_RAMECC_DISABLE_GLOBAL_IT() is handled automatically within the function HAL_RAMECC_DisableController(). If needed, user can handle it manually with the LL function:

__STATIC_INLINE void LL_RAMECC_DisableGlobalIT(RAMECC_TypeDef *p_ramecc, uint32_t interrupt)


HAL RAMECC enable global IT

HAL1

HAL2

#define __HAL_RAMECC_ENABLE_GLOBAL_IT

HAL_RAMECC_ENABLE_GLOBAL_IT() is handled automatically within the function HAL_RAMECC_EnableController_IT(). If needed, user can handle it manually with the LL function:

__STATIC_INLINE void LL_RAMECC_EnableGlobalIT(RAMECC_TypeDef *p_ramecc, uint32_t interrupt)


HAL RAMECC disable IT

HAL1

HAL2

#define __HAL_RAMECC_DISABLE_IT

The global controller interrupt is handled automatically within the function HAL_RAMECC_DisableController(). If needed, user can handle it manually with the LL functions:

  • __STATIC_INLINE void LL_RAMECC_DisableGlobalIT_SE(RAMECC_TypeDef *p_ramecc)

  • __STATIC_INLINE void LL_RAMECC_DisableGlobalIT_DE(RAMECC_TypeDef *p_ramecc)

  • __STATIC_INLINE void LL_RAMECC_DisableGlobalIT_DEBW(RAMECC_TypeDef *p_ramecc)


HAL RAMECC enable IT

HAL1

HAL2

#define __HAL_RAMECC_ENABLE_IT

The global controller interrupt is handled automatically within the function HAL_RAMECC_EnableController(). If needed, user can handle it manually with the LL functions:

  • __STATIC_INLINE void LL_RAMECC_EnableGlobalIT_SE(RAMECC_TypeDef *p_ramecc)

  • __STATIC_INLINE void LL_RAMECC_EnableGlobalIT_DE(RAMECC_TypeDef *p_ramecc)

  • __STATIC_INLINE void LL_RAMECC_EnableGlobalIT_DEBW(RAMECC_TypeDef *p_ramecc)


HAL RAMECC disable monitor IT

HAL1

HAL2

#define __HAL_RAMECC_DISABLE_MONITOR_IT

HAL_RAMECC_DISABLE_MONITOR_IT() is handled automatically within the function HAL_RAMECC_DisableMonitor(). If needed, user can handle it manually with the LL function:

__STATIC_INLINE void LL_RAMECC_DisableMonitorIT(RAMECC_Monitor_TypeDef *p_ramecc, uint32_t mask)


HAL RAMECC enable monitor IT

HAL1

HAL2

#define __HAL_RAMECC_ENABLE_MONITOR_IT

HAL_RAMECC_ENABLE_MONITOR_IT() is handled automatically within the function HAL_RAMECC_EnableMonitor_IT(). If needed, user can handle it manually with the LL function:

__STATIC_INLINE void LL_RAMECC_EnableMonitorIT(RAMECC_Monitor_TypeDef *p_ramecc, uint32_t mask)


HAL RAMECC get flag

HAL1

HAL2

#define __HAL_RAMECC_GET_FLAG

HAL_RAMECC_GET_FLAG() is handled automatically within the function HAL_RAMECC_GetInfo(). If needed, user can handle it manually with the LL function:

__STATIC_INLINE uint32_t LL_RAMECC_ReadFlag(const RAMECC_Monitor_TypeDef *p_ramecc, uint32_t flags)


HAL RAMECC get global IT source

HAL1

HAL2

#define __HAL_RAMECC_GET_GLOBAL_IT_SOURCE

HAL_RAMECC_GET_GLOBAL_IT_SOURCE() is handled automatically within the function HAL_RAMECC_IRQHandler(). If needed, user can handle it manually with the LL functions:

  • __STATIC_INLINE uint32_t LL_RAMECC_IsEnabledGlobalIT(const RAMECC_TypeDef *p_ramecc, uint32_t interrupt)

  • __STATIC_INLINE uint32_t LL_RAMECC_IsEnabledGlobalIT_SE(const RAMECC_TypeDef *p_ramecc)

  • __STATIC_INLINE uint32_t LL_RAMECC_IsEnabledGlobalIT_DE(const RAMECC_TypeDef *p_ramecc)

  • __STATIC_INLINE uint32_t LL_RAMECC_IsEnabledGlobalIT_DEBW(const RAMECC_TypeDef *p_ramecc)

  • __STATIC_INLINE uint32_t LL_RAMECC_IsEnabledMonitorIT(const RAMECC_Monitor_TypeDef *p_ramecc, uint32_t interrupt)

  • __STATIC_INLINE uint32_t LL_RAMECC_IsEnabledMonitorIT_SE(const RAMECC_Monitor_TypeDef *p_ramecc)

  • __STATIC_INLINE uint32_t LL_RAMECC_IsEnabledMonitorIT_DE(const RAMECC_Monitor_TypeDef *p_ramecc)

  • __STATIC_INLINE uint32_t LL_RAMECC_IsEnabledMonitorIT_DEBW(const RAMECC_Monitor_TypeDef *p_ramecc)


HAL RAMECC get IT source

HAL1

HAL2

#define __HAL_RAMECC_GET_IT_SOURCE

HAL_RAMECC_GET_IT_SOURCE() is handled automatically within the function HAL_RAMECC_IRQHandler(). If needed, user can handle it manually with the LL function:

__STATIC_INLINE uint32_t LL_RAMECC_GetGlobalIT(const RAMECC_TypeDef *p_ramecc, uint32_t interrupt)


HAL RAMECC get monitor IT source

HAL1

HAL2

#define __HAL_RAMECC_GET_MONITOR_IT_SOURCE

HAL_RAMECC_GET_MONITOR_IT_SOURCE() is handled automatically within the function HAL_RAMECC_IRQHandler(). If needed, user can handle it manually with the LL function:

__STATIC_INLINE uint32_t LL_RAMECC_GetMonitorIT(const RAMECC_Monitor_TypeDef *p_ramecc, uint32_t interrupt)


HAL RAMECC reset handle state

HAL1

HAL2

#define __HAL_RAMECC_RESET_HANDLE_STATE

The handle in HAL2 has been removed. The RAMECC APIs use direct access to hardware instances.